package Study.Work;

public class Text {
    public static void main(String[] args) {
        CreatQueue queue = new CreatQueue();
        queue.enqueue(8);
        queue.enqueue(12);
        queue.enqueue(18);
        queue.enqueue(5);
        queue.enqueue(15);
        queue.enqueue(10);
        System.out.println(queue);
        System.out.println("弹出队首元素" +  queue.dequeue());
        System.out.println("弹出队首元素" +  queue.dequeue());
        System.out.println("弹出队首元素" +  queue.dequeue());
        System.out.println("队首元素为：" +  queue.peek());
        System.out.println("队列是否为空：" +  queue.isEmpty());
        System.out.println("队列中元素的个数：" + queue.size());
        System.out.println(queue);
    }
}
